package com.example.video.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author qiusuyang
 * @since 2024-04-13
 */
@TableName("videolog")
@Data
public class VideoLog implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;


    /**
     * 上传时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date upData;

    /**
     * 视频唯一id
     */
    private Integer videoId;

    private String message;

    private String deviceId;


    @Override
    public String toString() {
        return "Log{" +
            "id = " + id +
            ", upData = " + upData +
            ", videoId = " + videoId +
                ", message = " + message +
                ", deviceId = " + deviceId +

        "}";
    }
}
